/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//function makeRequest(url, params) {
//        alert('ok');
//	var httpRequest;
//
//	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
//		httpRequest = new XMLHttpRequest();
//		if (httpRequest.overrideMimeType) {
//			httpRequest.overrideMimeType('text/xml');
//			// See note below about this line
//		}
//	} 
//	else if (window.ActiveXObject) { // IE
//		try {
//			httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
//		} 
//		catch (e) {
//			try {
//				httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
//			} 
//			catch (e) {}
//		}
//	}
//
//	if (!httpRequest) {
//		alert('Giving up :( Cannot create an XMLHTTP instance');
//		return false;
//	}
//	
//	
//	httpRequest.onreadystatechange = function() { alertContents(httpRequest); };
////        alert(url+' + '+params);
//	httpRequest.open('GET', url+'?'+params, true);
//	httpRequest.send();
//
//}

function alertContents(httpRequest) {
	if (httpRequest.readyState == 4) {
		if (httpRequest.status == 200) {
			alert(httpRequest.responseText);
		} else {
			alert('There was a problem with the request.');
		}
	}
}

function myAlert(x){
    alert(x);
}




